package com.ibuonline.search.solr.mmseg4j;

import java.io.Reader;
import java.util.Map;

import org.apache.lucene.analysis.Tokenizer;
import org.apache.solr.analysis.BaseTokenizerFactory;

public class MMsegTokenizerFactory extends BaseTokenizerFactory {
	private String mode = "MaxWord";

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.apache.solr.analysis.BaseTokenStreamFactory#init(java.util.Map)
	 */
	@Override
	public void init(Map<String, String> args) {
		mode = args.get("mode");
		super.init(args);
	}

	@Override
	public Tokenizer create(Reader input) {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * @return the mode
	 */
	public String getMode() {
		return mode;
	}

	/**
	 * @param mode
	 *            the mode to set
	 */
	public void setMode(String mode) {
		this.mode = mode;
	}

}
